/**
 * 公用的配置常量.
 */

import { Dimensions} from 'react-native';

console.log('__DEV__开发模式', __DEV__);// 说明: __DEV__ 的值是自动设置的, 无需import
// 参考: https://stackoverflow.com/questions/34315274/react-native-detect-dev-or-production-env

export const DEBUG = __DEV__;
// export const IN_DEBUGGER = DEBUG && !!window.navigator.userAgent;
console.log('DEBUG=', DEBUG);// 说明: __DEV__ 的值是自动设置的, 无需import
export const RN_VERSION = '1.3.0';

// 获取屏幕尺寸
let {width, height} = Dimensions.get('window');
export const SCREEN_WIDTH = width;
export const SCREEN_HEIGHT = height;
// 线上API服务器接口地址 app.i-counting.cn
export let SCHEME = 'https';
export let SCHEME1 = 'http';



 // export let DOMAIN_API = 'icrm.pilipa.cn';  //正式环境 打开
export let DOMAIN_API = 'x-sys.i-counting.cn';  //测试环境
//
// if(DEBUG) {// 测试环境变量, 上线时应删除
//     SCHEME = 'https';
//      DOMAIN_API = 'x-sys.i-counting.cn'
// }
// x-www.i-counting.cn


// export let LOGINDOMAIN_API = 'x-www.i-counting.cn';
export let LOGINDOMAIN_API = 'www.pilipa.cn';

export let API_HEADER_URL = 'sys';

// export let API_BASE_URL = `${SCHEME}://${DOMAIN_API}/${API_HEADER_URL}`;// API服务基础地址
// export let API_LOGINBASE_URL = `${SCHEME}://${LOGINDOMAIN_API}/${API_HEADER_URL}`;// API服务基础地址

export let API_BASE_URL = `${SCHEME}://${DOMAIN_API}/${API_HEADER_URL}`;// API服务基础地址
export let API_LOGINBASE_URL = `${SCHEME}://${LOGINDOMAIN_API}/${API_HEADER_URL}`;// API服务基础地址

// export let WWW_BASE_URL = `${SCHEME}://${DOMAIN_WWW}`;
// export let WEB_BASE_URL = `${SCHEME}://${DOMAIN_WEB}`;
export let KEY_USER_TOKEN = 'KEY_USER_TOKEN';// 用户登陆token
export let KEY_USER_INFO = 'KEY_USER_INFO';// 用户基本信息

export let WECHAT_APP_ID = 'wx16da5000356a9497';// 微信APP ID

